package cn.edu.zut.domin;

import java.io.Serializable;
import java.util.Date;

public class BookLendInfo implements Serializable {
    private String bookId;//图书编号
    private String readerId;//读者编号
    private int lendNumber;//借阅数
    private Date lendDate;//借阅日期
    private Date dueReturnDate;//应归还日期
    private Date actualReturnDate;//实际归还日期
    private double fineAmount;//罚款金额

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

    public String getReaderId() {
        return readerId;
    }

    public void setReaderId(String readerId) {
        this.readerId = readerId;
    }

    public int getLendNumber() {
        return lendNumber;
    }

    public void setLendNumber(int lendNumber) {
        this.lendNumber = lendNumber;
    }

    public Date getLendDate() {
        return lendDate;
    }

    public void setLendDate(Date lendDate) {
        this.lendDate = lendDate;
    }

    public Date getDueReturnDate() {
        return dueReturnDate;
    }

    public void setDueReturnDate(Date dueReturnDate) {
        this.dueReturnDate = dueReturnDate;
    }

    public Date getActualReturnDate() {
        return actualReturnDate;
    }

    public void setActualReturnDate(Date actualReturnDate) {
        this.actualReturnDate = actualReturnDate;
    }

    public double getFineAmount() {
        return fineAmount;
    }

    public void setFineAmount(double fineAmount) {
        this.fineAmount = fineAmount;
    }

    @Override
    public String toString() {
        return "该书的图书编号是"+this.getBookId()+"\n"
                +"该书的读者编号是"+this.getReaderId()+"\n"
                +"该书的借阅数量是"+this.getLendNumber()+"\n"
                +"该书的借阅日期是"+this.getLendDate()+"\n"
                +"该书的应归还日期是"+this.getDueReturnDate()+"\n"
                +"该书的实际归还日期是"+this.getActualReturnDate()+"\n"
                +"该书的罚款金额是"+this.getFineAmount()+"\n"
                ;
    }
}
